import request from "./request";
let baseUrl1 = "http://gh7aat.natappfree.cc";
// 大学列表
export async function getCollageList(data = {}) {
  return await request({
    url: baseUrl1 + `/college/getColleges`,
    method: "post",
    data,
  });
}
export async function getMajorTypes(data = { code: "0" }) {
  // code 表示本科
  return await request({
    url: baseUrl1 + `/getCategory`,
    method: "post",
    data,
  });
}
export async function getMajorTypesList(data = { code: 8 }) {
  // code 8表示工学
  return await request({
    url: baseUrl1 + `/getFiled`,
    method: "post",
    data,
  });
}
export async function getMajorList(data = { code: 8 }) {
  // code 表示 专业分类的id
  return await request({
    url: baseUrl1 + `/getMajor`,
    method: "post",
    data,
  });
}
export async function Predictive(data = { score: 550 }) {
  // code 表示 专业分类的id
  return await request({
    url: baseUrl1 + `/predictive`,
    method: "post",
    data,
  });
}
// 专业页面
// export async function getMajorTypes() {
//   return await request.get("/getCategory");
// }
// export async function getMajorTypesList() {
//   return await request.get("/getCategory");
// }
// export async function getMajorList() {
//   return await request.get("/getCategory");
// }

// export async function postComment(commentInfo) {
//   return await request.post(`/api/comment`, commentInfo);
// }

// export async function getComments(blogid, page = 1, limit = 10) {
//   return await request.get("/api/comment", {
//     params: {
//       blogid,
//       page,
//       limit,
//     },
//   });
// }
